]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lint: Enforce arrow notation
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 28 Jan 2019 00:39:54 +0000 (01:39 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 12 Jul 2019 16:01:07 +0000 (16:01 +0000)
We replaced all Lang.bind() calls with arrow functions or the standardized
Function.prototype.bind(), at least for the former eslint has some options
to ensure that the old custom doesn't sneak back in.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/609

lint/eslintrc-shell.json

index f2524a6df47c8ab5663161c6f6540b11e4419529..c5bed8690ac59bbddfb1b01a5fd3aa38c9c36ddc 100644 (file)
@@ -3,7 +3,8 @@
         "object-curly-spacing": [
             "error",
             "always"
-        ]
+        ],
+        "prefer-arrow-callback": "error"
     },
 
     "overrides": [